﻿<%@ Page Title="パスワード変更" Language="vb" AutoEventWireup="false" MasterPageFile="~/WebPages/CM/MainMaster.Master"
    CodeBehind="CM0030P01.aspx.vb" Inherits="Tohto.CM0030P01" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">

        /* ページ初期化 */
        function DoReady() {

        }

        /* 確定ボタン */
        function Kakutei() {
            var blnCheck = InputCheck();

            if (blnCheck == false) {
                return false;
            }

            return true;
        }

        /* チェック */
        function InputCheck() {

            //エラー項目背景色をクリア
            ClearErrorBg();

            var newpass = $("#<%=txt_new_pass.ClientId %>");

            if (checkNull(newpass.val())) {
                SetErrorArea("CME0060", '%FieldName%', '新パスワード', '', '', '', '', '', '');
                $("#<%=txt_new_pass.ClientId %>").addClass("errorRed");
                $("#<%=txt_new_pass.ClientId %>").focus();
                return false;
            }

            var confirm = $("#<%=txt_confirm_pass.ClientId %>");

            if (checkNull(confirm.val())) {
                SetErrorArea("CME0060", '%FieldName%', '確認パスワード', '', '', '', '', '', '');
                $("#<%=txt_confirm_pass.ClientId %>").addClass("errorRed");
                $("#<%=txt_confirm_pass.ClientId %>").focus();
                return false;
            }
        }

    </script>
    <div style="height: 80px;">
    </div>
    <div align="center">
        <table>
            <td style="width: 600px;" class="noborder_left noborder_bottom">
                <div align="center">
                    <table>
                        <tr>
                            <td class="label_background border_top cm0030p01_lbl cm0010p01_text_align_left">
                                旧パスワード
                            </td>
                            <td class="label_background noborder_left border_top">
                            </td>
                            <td class="border_right border_top">
                                <asp:TextBox ID="txt_old_pass" runat="server" MaxLength="10" TabIndex="1" CssClass="cm0030p01_write_zone ime_disabled" ReadOnly="True" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" class="noborder_left">
                            </td>
                        </tr>
                        <tr>
                            <td class="label_background cm0010p01_text_align_left">
                                新パスワード
                            </td>
                            <td class="cm0030p01_needmark label_background noborder_left">
                                *
                            </td>
                            <td class="border_right">
                                <asp:TextBox ID="txt_new_pass" runat="server" MaxLength="10" TabIndex="2" CssClass="cm0030p01_write_zone ime_disabled"
                                    TextMode="Password" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" class="noborder_left">
                            </td>
                        </tr>
                        <tr>
                            <td class="label_background cm0010p01_text_align_left">
                                確認
                            </td>
                            <td class="cm0030p01_needmark label_background noborder_left">
                                *
                            </td>
                            <td class="border_right">
                                <asp:TextBox ID="txt_confirm_pass" runat="server" MaxLength="10" TabIndex="3" CssClass="cm0030p01_write_zone ime_disabled"
                                    TextMode="Password" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div style="height: 30px;">
                </div>
                <div>
                    <table width="100%">
                        <tr>
                            <td class="noborder_left noborder_bottom">
                                <div class="button_float_right">
                                    <div>
                                        <asp:Button ID="btn_login" TabIndex="115" runat="server" Text="確定" OnClientClick="return Kakutei();"/>
                                    </div>
                                </div>
                            </td>
                            <td width="50" class="noborder_left noborder_bottom">
                            </td>
                            <td class="noborder_left noborder_bottom">
                                <div class="button_float_left">
                                    <div>
                                        <asp:Button ID="btn_close" TabIndex="120" runat="server" Text="中断"/>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </table>
    </div>
</asp:Content>
